hvmloader: fix vgatype detecting issue
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 22 Feb 2010 10:04:22 +0000 (10:04 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 22 Feb 2010 10:04:22 +0000 (10:04 +0000)
commitb0e6d9b53ad560c76de274ff5cb91dacac327012
treeef460b7d8592c930d37f5bfaae01e74d6171f9a5
parent8a5761d2b7238cf4a15c79307307031757c9b38b
hvmloader: fix vgatype detecting issue

When graphics card is assigned to a guest as a secondary VGA,
without gfx_passthru and emulated VGA is the primary VGA,
hvmloader misreads gfx_passthru is specified if VGA device is
found after the emulated VGA.

This patch fix this issue. If emulated VGA is found, hvmloader
preserves it and loads vgabios of the emulated VGA.

Signed-off-by: Noboru Iwamatsu <n_iwamatsu@jp.fujitsu.com>
tools/firmware/hvmloader/hvmloader.c